package com.ruoyi.project.app.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.File;

/**
 * @description: 测试接口:该接口被请求时,记录请求时间
 * @author: hanruiyu
 * @create: 2020-10-17 15:12
 **/
@RestController
public class SeeConnInfoController {

    @GetMapping("/app/log")
    public void seeConnInfo() {

        final File tmpLogFile = new File("E:/mock.log");
        final LogWrite logSvr = new LogWrite(tmpLogFile);

        try {
            logSvr.logMsg(tmpLogFile, " aaa test !");
        } catch (Exception e) {
            throw new RuntimeException(e);
        }


    }
}
